package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.NoticeVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：郑皓
 * 创建时间：2018/1/12 11:45:58
 * 修改备注：
 * ================================================
 */

public class NoticeListHolder extends BaseViewHolder<NoticeVO> {

    private TextView tvTitle;//标题
    private TextView tvTime;//日期
    private TextView tvCompany;//公司


    public NoticeListHolder(ViewGroup parent) {
        super(parent, R.layout.item_notice_list);

        tvTitle = $(R.id.tv_title);
        tvTime = $(R.id.tv_time);
        tvCompany = $(R.id.tv_company);

    }

    @Override
    public void setData(final NoticeVO data) {
        super.setData(data);

        tvTitle.setText(data.getContent() + "");
        tvTime.setText(data.getCreateAt() + "");
        tvCompany.setText(data.getPushPerson() + "");

    }

}
